<?
	$pageSize = 8;
	$pageNum = 1;
    if (isset($_GET['pageNum'])==true) $pageNum = $_GET['pageNum'];
		//echo $pageNum;die;
	$totalRows = 0;
	$tuvan=$t->get_phantrang_db($pageNum,$pageSize,$totalRows,"tuvan",-1,1," and traloi <>'' ");
?>
<div class="left_title">
	<h3 class="gioithieu_title">Tư vấn làm đẹp miễn phí</h3>
    <!--    <img src="imgs/left_title.png" align="middle" />-->
</div>
<div class="dichvu">
        <div class="guituvan">
            <a href="librarys/incs/tuvan_form.php" title="" id="guituvan">
                Gửi tư vấn
            </a>
        </div>
        <ul>
        	<? while($row_tuvan=mysql_fetch_assoc($tuvan)) {?>
            <li>
                <h1><a href="<?=$rooturl?>tu-van.html/<?=$row_tuvan['id']?>"><?=$row_tuvan['cauhoi']?> </a></h1>
                <a href="<?=$rooturl?>tu-van.html/<?=$row_tuvan['id']?>"><img src="imgs/5.jpg" /></a>
                <div style="float:left;width:458px;height:100px;overflow:hidden;">
                <?=$row_tuvan['traloi']?>
                </div>
                <a href="<?=$rooturl?>tu-van-chi-tiet.html/<?=$row_tuvan['id']?>" class="more">Đọc thêm...</a>
            </li>
            <? }?>
        </ul>
</div>
<div class="showpageArea">
        <?php echo $t->pagesList1($rootURL.'tu-van.html',$totalRows,$pageNum,$pageSize,5); ?>
</div>